package controller;

import java.io.IOException;
import java.net.UnknownHostException;

import view.ServerView;

import model.roomManagement.Implementation.Server;

public class ServerController {
Server server;
	
	public ServerController(Server server){
		this.server=server;
		ServerView SV=new ServerView(server,this);
		SV.open();
	}
	
	public void open() throws UnknownHostException, IOException{
		server.open();
	}
	public void close() throws IOException{
		server.close();
	}
	
}
